import { setInfo, getInfo } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      userInfo: getInfo()
    }
  },
  mutations: {
    SETUSERINFO (state, newValue) {
      state.userInfo = newValue
      setInfo(newValue)
    }
  },
  actions: {}
}
